home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Creative Computers
/
Creative Computers CD-ROM, Volume 1 (Legendary Design Technologies, Inc.)(1994).iso
/
shareware
/
intuition
/
yak_1.57
/
source
/
pri.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-11-17
|
428b
|
29 lines
/*
* pri.c
*
* Simple priority alteration routine for Yak.
*
* MWS, 12-Sep-92
*/
#include <exec/types.h>
#include <exec/tasks.h>
#include <proto/exec.h>
#include "yak.h"
static LONG priority[2] = {0,5};
void __regargs
MyPri(UWORD which)
{
static BOOL firsttime = TRUE;
LONG oldpri;
oldpri = SetTaskPri(FindTask(NULL), priority[which]);
if (firsttime)
{
priority[ORIGINAL] = oldpri;
firsttime = FALSE;
}
}